package com.microservice.skeleton.auth.model;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * @author: lijin
 * @date: 2018年09月25日
 */
public class UserDataDetails extends User {
    private Long accountId;
    private Integer accountType;


    public UserDataDetails(String username, String password, Collection<? extends GrantedAuthority> authorities, Long accountId, Integer accountType) {
        super(username, password, authorities);
        this.accountId = accountId;
        this.accountType = accountType;
    }

    public Long getAccountId() {
        return accountId;
    }

    public void setAccountId(Long accountId) {
        this.accountId = accountId;
    }

    public Integer getAccountType() {
        return accountType;
    }

    public void setAccountType(Integer accountType) {
        this.accountType = accountType;
    }
}
